Title URL
Allow users to see the title and URL of a page, and click the title to navigate to it
#Examples
TitleUrl provides a clear and concise way to present the title and URL of a page, aiding navigation and enhancing user understanding of link destinations.
Opens in new tab:
Page titlewww.siteimprove.com<TitleUrl
title="Page title"
titleFallback={
<Tooltip
variant={{ type: "text" }}
content={"The page title field is either empty or unknown."}
>
No page title
</Tooltip>
}
url="www.siteimprove.com"
link="https://www.siteimprove.com" // usually link to the page report
/>#Properties
Opens in new tab:
Page titlewww.siteimprove.com| Property | Description | Defined | Value |
|---|---|---|---|
urlRequired | stringValue for the link | ||
linkOptional | stringValue rendered as the link text in the breadcrumb | ||
titleOptional | stringValue for the page title | ||
titleFallbackOptional | elementValue for the page title not found / no data | ||
searchQueryOptional | objectValue for the query | ||
styleOptional | objectStyle CSSProperties values | ||
overflowOptional | "ellipsis" | "wrap"Overflow properties | ||
displayModeOptional | "both" | "title" | "url"Should the component display only the title, only the url or both | ||
titleClassNameOptional | stringClassname for title display | ||
urlClassNameOptional | stringClassname for url display | ||
urlDataObserveKeyOptional | stringdata observe key for URL | ||
data-observe-keyOptional | stringUnique string, used by external script e.g. for event tracking | ||
data-componentOptional | stringName of the component. Should only be set by components since it needs to stable. Used to track component usage | ||
tabIndexOptional | numberTab index of the outermost HTML element of the component | ||
onKeyDownOptional | functionCallback for onKeyDown event | ||
onMouseDownOptional | functionCallback for onMouseDown event | ||
onMouseEnterOptional | functionCallback for onMouseEnter event | ||
onMouseLeaveOptional | functionCallback for onMouseLeave event | ||
onFocusOptional | functionCallback for onFocus event | ||
onBlurOptional | functionCallback for onBlur event | ||
classNameOptional | stringCustom className that's applied to the outermost element (only intended for special cases) |
#Guidelines
#Best practices
#Do not use when
#Accessibility
Explore detailed guidelines for this component: Accessibility Specifications